<template>
  <router-view></router-view>
</template>

<script lang="ts" setup>
import { io } from 'socket.io-client'
import { onMounted } from 'vue'
onMounted(() => {
  const socket = io('https://www.tinyxu.fun/order')
  socket.on('addOrder', (data: boolean) => {
    ElNotification({
      title: 'Tips',
      message: '有新订单,请及时查看',
      type: 'success',
      duration: 0,
    })
  })
})
</script>
<style lang="less">
/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
  background-color: var(--BodyFill);
}

::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 5px;
}
body {
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
    'Segoe UI Symbol', 'Noto Color Emoji';
  font-size: 16px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--BodyFill);

  ul,
  li {
    margin: 0;
    padding: 0;
    list-style: none;
  }
}
.active {
  color: #409eff !important;
  --tabsFill: #409eff;
}
</style>
